package org.zhuy.location;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class UseLocationActivity extends Activity {

	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        Button btn=(Button)findViewById(R.id.btn_get_location);
        btn.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View v) {
				startActivity(new Intent(UseLocationActivity.this,GetLocation.class));
			}
        	
        });
        
        Button btn2=(Button)findViewById(R.id.btn_get_location_now);
        btn2.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View v) {
				startActivity(new Intent(UseLocationActivity.this,GetLocationNow2.class));
			}
        	
        });
    }
	
	
}